Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure files exist for install:broadcasting #51719

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

jasonmccreary
Copy link
Contributor

Although closed, this addresses Issue #51157. The install:broadcasting has some legacy code which assumes the existence of config/app.php and app/Providers/BroadcastServiceProvider.php. Neither may be true within a Laravel 11 application.

This PR simply checks for the existence of these files before attempting to read a presumably legacy config/app.php to uncomment the legacy reference to BroadcastServiceProvider.

Ideally, the enableBroadcastServiceProvider method would be removed as it is not needed within a modern Laravel 11 application. But I left it to maintain support for older, unslimmed applications which are now running Laravel 11.

@jasonmccreary
Copy link
Contributor Author

Note, there are some other edge-cases which existed for this command, like the assumed namespace, location, and registry of BroadcastServiceProvider. I left those to keep this PR focused. But am glad to address them if the team thinks they are worthwhile.

@taylorotwell taylorotwell merged commit d6659b6 into laravel:11.x Jun 5, 2024
27 of 28 checks passed
@jasonmccreary jasonmccreary deleted the fix-broadcast-install branch June 5, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants